package controllers;

import play.*;
import play.mvc.*;

import views.html.*;

public class Application extends Controller {
  
  private static boolean started = false;
  
  public static synchronized Result index() {	
	if(!started){
		//Since this is the first action called we
		//create the DB and fill with data calling the init methods of the Models
		//The DB is implemented in memory;
		
		
		started = true;
	}
    return ok(index.render());
  }
  
}